﻿@model MembershipUserCollection

@{
    ViewBag.Title = "Cuenta";
    
}

<h2>Cuenta</h2>

<table>
    <tr>
        <th>
            Nombre
        </th>

        <th>
            Email
        </th>
        
        <th>
            Ultima Actividad
        </th>

        <th>
            Creado
        </th>

        <th>
            Online
        </th>

        <th></th>
    </tr>

 
@foreach (var item in Model) 
    {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => ((System.Web.Security.MembershipUser)(item)).UserName	)
        </td>

        <td>
            @Html.DisplayFor(modelItem => ((System.Web.Security.MembershipUser)(item)).Email)
        </td>

        <td>
            @Html.DisplayFor(modelItem => ((System.Web.Security.MembershipUser)(item)).LastActivityDate	)
        </td>
   
         <td>
            @Html.DisplayFor(modelItem => ((System.Web.Security.MembershipUser)(item)).CreationDate	)
        </td>

        <td>
            @Html.DisplayFor(modelItem => ((System.Web.Security.MembershipUser)(item)).IsOnline	)
        </td>

        <td>
            @Html.ActionLink("Editar", "Edit", new { Nombre = ((System.Web.Security.MembershipUser)(item)).UserName }) |
            @Html.ActionLink("Detalles", "Details", new { Nombre = ((System.Web.Security.MembershipUser)(item)).UserName }) |
            @Html.ActionLink("Eliminar", "Delete", new { Nombre = ((System.Web.Security.MembershipUser)(item)).UserName })
        </td>
    </tr>
    }   